package com.itheima.utils;

import java.util.HashMap;
import java.util.Map;

public class ExtraUtils {

    /**
     * 键值对封装
     * @param name
     * @param value
     * @return
     */
    public static Map KV2Map(String name, Object value) {
        Map map = new HashMap<>(2);
        map.put("value", value);
        map.put("name", name);
        return map;
    }
}
